package com.itheima.feign.client;

import com.itheima.feign.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 29143
 */
@FeignClient("userservice")
public interface UserClient {

    @GetMapping("/user/{id}")
    public User fiandById(@PathVariable("id") Long id);
}
